<h1>New user</h1>

<% form_for(@user) do |f| %>
  <%= f.error_messages %>

  <p>
   <label for="loginid">User Name:</label><br />
    <%= f.text_field :loginid %>
  </p>
  <p>
    <label for="email">Email:</label> <br />
    <%= f.text_field :email %>
  </p>
  <p>
    <label for="fname">First Name:</label> <br />
    <%= f.text_field :fname %>
  </p>
  <p>
    <label for="lname">Last Name:</label> <br />
    <%= f.text_field :lname %>
  </p>
  <p>
   <label for="password">Password:</label> <br />
<%= f.password_field :password, :size => 40 %>  </p>
  <p>
    <label for="password_confirmation">Confirm your password:</label> <br />
<%= f.password_field :password_confirmation, :size => 40 %>  </p>
  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', users_path %>
